#!/bin/bash
KEY_WORD=chot
HMS_NAME=hms
PID=$(ps -ef|grep ${HMS_NAME}|grep ${KEY_WORD}|grep java |grep -v grep | awk '{print $2}')
echo "${KEY_WORD} $PID is running"
ps -ef|grep ${HMS_NAME}|grep ${KEY_WORD}|grep java |grep -v grep | awk '{print $2}'|xargs kill -9
echo "kill ope his finish."